package com.snow.campuslink.exceptionhandler;

import com.snow.campuslink.project.constant.Constant.SysConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 参数校验异常
 * @author Gaosl
 * @date 23:47 2021/1/21
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PartFailBusinessException extends RuntimeException {
    private String code;

    private String message;


    public PartFailBusinessException(String message) {
        this.code= SysConstant.ResponseCode.PART_FAIL;
        this.message=message;
    }
}
